package queue;

public interface Queue {
	public void enqueue(int i) throws QueueOverflowException;
	public int dequeue() throws QueueUnderflowException;
	public int head();
	public boolean isEmpty();
	public boolean full();
	
	public class QueueOverflowException extends Exception {

		public QueueOverflowException() {
			super("Fila cheia");
		}

	}
	
	public class QueueUnderflowException extends Exception {

		public QueueUnderflowException() {
			super("Fila vazia");
		}

	}
}
